<!DOCTYPE html>
<html>
<head>
<title>商品出入库记录表</title>
<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("pms:goodsstockrecord:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("pms:goodsstockrecord:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("pms:goodsstockrecord:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
            <#if shiro.hasPermission("pms:goodsstockrecord:download")>
            <a class="btn btn-primary" @click="download"><i class="fa fa-download-o"></i>&nbsp;下载进货明细</a>
            </#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品名</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="goodsStockRecord.goodsName" placeholder="商品名"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品条码</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="goodsStockRecord.barcode" placeholder="商品条码"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">生产批次</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="goodsStockRecord.productionBatch" placeholder="生产批次"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">生产日期</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="goodsStockRecord.dateOfManufacture" placeholder="生产日期"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">到产日期</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="goodsStockRecord.dateDue" placeholder="到产日期"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">保质期</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="goodsStockRecord.shelfLife" placeholder="保质期"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">类型，0:入库，1:出库</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="goodsStockRecord.type" placeholder="类型，0:入库，1:出库"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">供货商</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="goodsStockRecord.supplier" placeholder="供货商"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">库存数量</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="goodsStockRecord.num" placeholder="库存数量"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">库存单位</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="goodsStockRecord.unit" placeholder="库存单位"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">说明备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="goodsStockRecord.description" placeholder="说明备注"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建时间/入库</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="goodsStockRecord.createTime" placeholder="创建时间/入库"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">更新时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="goodsStockRecord.updateTime" placeholder="更新时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">1删除，	0不删除</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="goodsStockRecord.deleteState" placeholder="1删除，	0不删除"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/pms/goodsstockrecord.js?_${.now?long}"></script>
</body>
</html>